package atguigu.pUtils;


import java.util.ArrayList;
import java.util.List;

public class ActPaths {

    List<ActItem> actItemList;

    List<ActLine> actLines;

    public List<ActItem> getActItemList() {
        return actItemList;
    }

    public void setActItemList(List<ActItem> actItemList) {
        this.actItemList = actItemList;
    }

    public List<ActLine> getActLines() {
        return actLines;
    }

    public void setActLines(List<ActLine> actLines) {
        this.actLines = actLines;
    }

    public void addItems(ActItem ...items) {
        if(getActItemList() == null){
            setActItemList(new ArrayList<ActItem>());
        }
        if(items != null && items.length>0){
            for (ActItem item : items) {
                getActItemList().add(item);
            }
        }
    }

    public void addLines(ActLine ...lines){
        if(getActLines() == null){
            setActLines(new ArrayList<ActLine>());
        }
    }
}
